package com.you.pattern.sigleton.hungry;

public class HungrySingletonDemo2 {

    private final static HungrySingletonDemo2 hungrySingleton;

    static {
        hungrySingleton = new HungrySingletonDemo2();
    }

    public static HungrySingletonDemo2 getInstance() {
        return hungrySingleton;
    }

    public static void main(String[] args) {
        System.out.println(HungrySingletonDemo2.getInstance());
    }
}
